package org.example.Loadbalance;

import org.example.common.Url;

import java.util.List;
import java.util.Random;

public class LoadBalance {

    public static Url random(List<Url> urls){
        //随机
        Random random = new Random();
        return urls.get( random.nextInt(urls.size()));
    }

    //轮询

    //按照资源权重
}
